﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using RenameSubtitles;

namespace RenameSubtitlesGUI
{
    public partial class FormResult : Form
    {
        private StringTable ST = new StringTable();
        public string path= "";
        public List<RenameSubtitles.RenameSubtitlesJob.Item> renameItems;
        public FormResult()
        {
            InitializeComponent();
        }

        private void folderBrowserDialog1_HelpRequest(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            label1.Text = ST.Get(TEXTO.HEADER1) + path;
            foreach (RenameSubtitlesJob.Item item in renameItems)
            {
                listBox1.Items.Add(string.Format(ST.Get(TEXTO.INFORME1), item.oldFilename.Replace(path + "\\", ""), item.newFilename.Replace(path + "\\", "")));
            }
            

        }
        public string[] lines= null;

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.No;
            Close();
        }

        private void acercaDeToolStripMenuItem_Click(object sender, EventArgs e)
        {
/*            RenameSubtilesAboutBox about = new RenameSubtilesAboutBox();
            about.ShowDialog(this);*/
        }
    }
}
